package cn.iot.sys.entity;

import cn.hutool.core.date.DatePattern;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 班级类
 */
@Data
@TableName("t_sys_class")
public class SysClass implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId
    private int id;
    @ApiModelProperty(value = "班级名称")
    private String name;//班级名称
    @ApiModelProperty(value = "专业id")
    private int majorId;//专业id
    @ApiModelProperty(value = "年级id")
    private int gradeId;//年级id
    @ApiModelProperty(value = "班主任id")
    private int teacherId;//班主任id
    @ApiModelProperty(value = "助理班主任id")
    private int assistantId;//助理班主任id
    @ApiModelProperty(value = "学期id")
    private int detailId;//学期id
    @ApiModelProperty(value = "状态")
    private int status;//状态(有效/无效)
    @ApiModelProperty(value = "班级人数")
    private int classSize;//班级人数
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN, timezone = "GMT+8")
    private Date createDate;//创建时间
    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN, timezone = "GMT+8")
    private Date modifyDate;//修改时间
    @ApiModelProperty(value = "班主任姓名")
    private String teacherName;//班主任姓名
    @ApiModelProperty(value = "年级名称")
    private String gradeName;//年级名称
    @ApiModelProperty(value = "专业名称")
    private String majorName;//专业名称
    @ApiModelProperty(value = "是否毕业")
    private int isGraduated;//是否毕业

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getMajorId() {
        return majorId;
    }

    public void setMajorId(int majorId) {
        this.majorId = majorId;
    }

    public int getGradeId() {
        return gradeId;
    }

    public void setGradeId(int gradeId) {
        this.gradeId = gradeId;
    }

    public int getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(int teacherId) {
        this.teacherId = teacherId;
    }

    public int getAssistantId() {
        return assistantId;
    }

    public void setAssistantId(int assistantId) {
        this.assistantId = assistantId;
    }

    public int getDetailId() {
        return detailId;
    }

    public void setDetailId(int detailId) {
        this.detailId = detailId;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getClassSize() {
        return classSize;
    }

    public void setClassSize(int classSize) {
        this.classSize = classSize;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public String getGradeName() {
        return gradeName;
    }

    public void setGradeName(String gradeName) {
        this.gradeName = gradeName;
    }

    public String getMajorName() {
        return majorName;
    }

    public void setMajorName(String majorName) {
        this.majorName = majorName;
    }

    public int getIsGraduated() {
        return isGraduated;
    }

    public void setIsGraduated(int isGraduated) {
        this.isGraduated = isGraduated;
    }
}
